package com.tuanzi.loan.business.service.product.space;

import java.util.List;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.entity.product.space.LoanProductSpace;
import com.tuanzi.loan.business.entity.product.space.LoanProductSpaceProduct;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.product.space.LoanProductSpaceSearchRequest;
import com.tuanzi.loan.vo.response.product.space.LoanProductSpaceSearchResponse;

public interface LoanProductSpaceService {

	Page<LoanProductSpaceSearchResponse> list(PageSearcher<LoanProductSpaceSearchRequest> pageSearcher);

	LoanProductSpace findOneById(Long id);

	LoanProductSpace save(LoanProductSpace space, List<LoanProductSpaceProduct> loanProductSpaceProducts);

	List<LoanProductSpace> findAllByType(Integer type);

	void cleanSpaceRedisBy(Long id);

	LoanProductSpace findBySpaceId(Long spaceId);

}
